/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package is202.hrms.web;

import is202.hrms.ejb.ForumEJB;
import is202.hrms.entity.Forum;
import java.io.Serializable;
import java.util.List;
import javax.ejb.EJB;
import javax.enterprise.context.RequestScoped;
import javax.inject.Named;



/**
 *
 * @author Julianna
 */
@Named(value = "forummldlistbean")
@RequestScoped
public class ForumMldListBean implements Serializable {
    private static final long serialVersionUID = 1L;
    
@EJB ForumEJB forumEjb;
    /**
     * Creates a new instance of ForumMldListBean
     */
    public ForumMldListBean() {
    } 
// få tak i alle meldinger som listeelement
    public List<Forum> getForumMlds() {
        List<Forum> l = forumEjb.findAll();
        return l;
    }

}
